<?php 
	//timer pengecekan load page...
	include("inc/timer.php");
	$_start_timer = get_microtime();
	 
	//check protect1 jika session da tidak valid, balikin ke index.php
	//jika valid y biarin saja
	
	require_once("protect1.php");
	require_once("inc/connect.php");
	require_once("inc/settings.php");
	
	$_username = $reg_uname;
	$_semester = $_global_settings['semester']->value;
	$_tahun_ajaran = $_global_settings['tahun_ajaran']->value;
	$_level_settings = getLevelSettings($reg_level, $pdo);

	//$sql = "SELECT nama FROM biodata WHERE nrp = :reg_uname ";
	//$stmt = $pdo->prepare($sql);
	//$stmt->execute(array(':reg_uname' => $reg_uname )) or die("ERROR: " . implode(":", $stmt->errorInfo())); //reg jurusan dari protect1.php
	//$_data = $stmt->fetch(PDO::FETCH_OBJ);

?>
<!DOCTYPE html>
<html>
<head>
<title>Student Home !</title>
<link rel="stylesheet" type="text/css" href="css/reset_main.css">
<link rel="stylesheet" type="text/css" href="css/main.css">
<style type="text/css">
	body{ behavior:url(cssHoverFix.htc);}
	#div a { normal state }
	#div a:hover { alternative state }
</style>
</head>
<body>	
	<header id="main">
		<table id="header">
			<tr>
				<td class="header_logo_small"><a class="header_logo_small" href="#"></a></td>
				<td class="header_announce">
					<marquee style="letter-spacing:1px;marquee-speed:slow;">
						Nilai <strong>UTS</strong> Semester Gasal Periode 2012-2013 sudah keluar *sebagian. 
						Jika anda menemukan Bug / Kritik / Saran, silahkan Laporkan kepada ICT Sesegera mungkin. 
						Terima Kasih.
					</marquee>
				</td>
				<td class="header_user_name"><a class="header_user_name_a" href="#"><?php echo (strlen($_username) < 15 ? ucwords(strtolower($_username)) : ucwords(strtolower(substr($_username,0,15)))."..."); ?></a></td>
				<td class="header_user_photo">
					<a class="header_user_photo_a" href="#">
						<img class="header_user_photo_img" src="images/people/default.gif">
					</a>
				</td>
			</tr>
		</table>
	</header>
	<table class="board">
		<tr>
			<td class="sidebar">
				<div id="navigation">
					<ul class="top-level">
						<?php
							$basename_url = substr($_SERVER["SCRIPT_NAME"],strrpos($_SERVER["SCRIPT_NAME"],"/")+1);
							foreach($_level_settings->menu as $foreach){
								if ($basename_url == $foreach->url){$clicked = 'class="clicked"';}else{$clicked = '';}
								echo '<li><a href="'.$foreach->url.'" '.$clicked.'>'.$foreach->nama.'</a></li>';
							}							
						?>
					</ul>
				</div>
			</td>
			<td class="bigbox">
				<div class="banner"></div>
				<div class="content">	
					<h1>Heading 1</h1>
					<h2>Heading 2</h2>
					<h1>Heading 1 + br</h1><br \>
					<h2>Heading 2 + br</h2><br \>					
					<div>
						Ini tulisan biasa dengan div biasa, atau <span class="sign red">Merah</span>, <span class="sign border red">Merah Berborder</span>
						, <span class="sign red big">Merah Gede</span>, <span class="sign red border big">Merah Gede</span>.
						<br \>
						testing file <span class="sign">mother</span> file <span class="sign blue">mother</span> file <span class="sign green">mother</span>
						<br \>
						file <span class="sign black big border">BIG</span>
						<br \><br \> now we try the class <span class="sign black border">.sign black border</span> now we try the class <span class="sign black border">.sign black border</span>now we try the class <span class="sign black border">.sign black border</span>now we try the class <span class="sign black border">.sign black border</span>z
					</div>
					<div>
					<section>
						<p>First grid 	layer is built with <code>.data-block</code> cells. Second one works inside of data blocks. Use standard Bootstrap grid classes with data-block cell to build your own layout. Each <code>.data-block</code> comes with optional components, you can remove <code>&lt;footer&gt;</code> and <code>&lt;header&gt;</code> if needed or turn whole block into more complex widget.</p>
						<p>You can choose from 3 different styles for each data block. Default style drops fancy papier-like shadows. For simpler look use class <code>.decent</code> or alternatively clean all styling with class <code>.raw</code>.</p>
						<p>Check these 3 blocks for example configuration.</p>
					</section>
					</div>
					<div class="letter-spacing">
						<p>First grid 	layer is built with <code>.data-block</code> cells. Second one works inside of data blocks. Use standard Bootstrap grid classes with data-block cell to build your own layout. Each <code>.data-block</code> comes with optional components, you can remove <code>&lt;footer&gt;</code> and <code>&lt;header&gt;</code> if needed or turn whole block into more complex widget.</p>
						<p>You can choose from 3 different styles for each data block. Default style drops fancy papier-like shadows. For simpler look use class <code>.decent</code> or alternatively clean all styling with class <code>.raw</code>.</p>
						<p>Check these 3 blocks for example configuration.</p>
					</div>
					<div class="warning green border">
						<label>Warning !</label>
						Anda belum menverifikasi atau mensubmit KRS anda menjadi KRS yang Valid, Segera Validkan KRS anda untuk segera diproses
					</div>
					<div class="warning">
						<label>Warning !</label>
						Anda belum menverifikasi atau mensubmit KRS anda menjadi KRS yang Valid, Segera Validkan KRS anda untuk segera diproses
					</div>
					<div class="warning green">
						<label>Green !</label>
						Anda belum menverifikasi atau mensubmit KRS anda menjadi KRS yang Valid, Segera Validkan KRS anda untuk segera diproses
					</div>
					<div class="warning blue">
						<label>Blue !</label>
						Anda belum menverifikasi atau mensubmit KRS anda menjadi KRS yang Valid, Segera Validkan KRS anda untuk segera diproses
					</div>
					<div class="warning red">
						<label>Error !</label>
						Anda belum menverifikasi atau mensubmit KRS anda menjadi KRS yang Valid, Segera Validkan KRS anda untuk segera diproses
					</div>
					<div class="warning black">
						<label>Black !</label>
						Anda belum menverifikasi atau mensubmit KRS anda menjadi KRS yang Valid, Segera Validkan KRS anda untuk segera diproses
					</div>
					<h1>Table Example !!</h1>
					<h2>Antar table kasih [br \] agar bagus</h2><br \>
					<table class="data body">
						<thead>
							<tr>
								<th width="4%">No</th><th width="8%">Kode</th><th>Mata Kuliah</th><th>Status</th><th width="7%">SKS</th><th>Act!</th>
							</tr>
						</thead>
						<tbody>
							<tr onclick="document.location.href='#';">
								<td class="center">1</td>
								<td class="center"><center>TI3731</center></td>
								<td> MANAJEMEN PROYEK SISTEM INFORMASI</td>
								<td class="center">BARU</td>
								<td class="center">2</td>
								<td></td>
							</tr>
							<tr onclick="document.location.href='#';" class="odd">
								<td class="center">2</td>
								<td class="center"><center>TI3515</center></td>
								<td> MANAJEMEN SUMBER DAYA INFORMASI</td>
								<td class="center">BARU</td>
								<td class="center">2</td>
								<td></td>
							</tr>
							<tr onclick="document.location.href='#';">
								<td class="center">3</td>
								<td class="center"><center>TI4706</center></td>
								<td> KERJA PRAKTEK</td>
								<td class="center">ULANG</td>
								<td class="center">2</td>
								<td></td>
							</tr>
						</tbody>
						<tfoot>
							<tr>
								<td></td><td></td><td></td><td>TOTAL</td><td>12</td><td></td>
							</tr>
						</tfoot>
					</table>					
					<br \>
					<table class="data foot">
						<tbody>
							<tr>
							<tr><th width="25%">Nilai IPS terakhir </td><td>&nbsp;1 (kasih spasi di kiri 1)</td></tr>
							<tr><th>Limit SKS anda</td><td>&nbsp;? SKS</td></tr>
							<tr><th>Toleransi SKS anda</td><td>&nbsp;0 SKS</td></tr>
							<tr><th>Sisa Limit SKS anda</td><td>&nbsp;99 SKS</td></tr>
						</tbody>						
					</table>
					<br \>
					<h2>bawah Padding botom 50px agar bisa dilihat footernya dengan bagus kalau layar g nyampek banyak</h2>
					<div style="padding-bottom:50px;"></div>
				</div>
			</td>
		</tr>
	</table>
	<footer id="main">
	  <div><a href="http://www.widyakartika.ac.id/perpustakaan">Perpustakaan Online</a> | <a href="http://krs.widyakartika.ac.id/">KRS Online</a></div>
	  <div>Copyright &copy; 2012. <a href="http://www.widyakartika.ac.id">Universitas Widya Kartika</a> & <a href="#">Labkom ICT</a> - All rights reserved</div>
		<?php
			$_finish_timer = get_microtime();
			echo 'Page generated in '.round(($_finish_timer - $_start_timer), 4).' seconds.';
		?>
	</footer>
</body>
